/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import org.hibernate.Session;
import pojo.BaoCaoTon;
import util.HibernateUtil;

/**
 *
 * @author LaiHuynh
 */
public class BaoCaoTonDAO {
    public static void themThongBaoCaoTon(BaoCaoTon bct) {
        Session session = HibernateUtil.getSessionFactory().openSession();
        session.beginTransaction();
        session.save(bct);
        session.getTransaction().commit();
        session.close();
    }
}
